<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="style.css" />

    <title>Tab 选项卡</title>
  </head>
  <body>
    <main class="container">
      <div class="tab-container">
        <div class="tabs">
          <div id="tab1" class="tab active">选项一</div>
          <div id="tab2" class="tab">选项二</div>
          <div id="tab3" class="tab">选项三</div>
        </div>
        <div class="tab-content">
          <div data-tab="tab1" style="display: block">
            <h2>选项 1 内容</h2>
            <img src="./icons/icon1.svg" alt="图标 1" />
          </div>
          <div data-tab="tab2" style="display: none">
            <h2>选项 2 内容</h2>
            <img src="./icons/icon2.svg" alt="图标 2" />
          </div>
          <div data-tab="tab3" style="display: none">
            <h2>选项 3 内容</h2>
            <img src="./icons/icon3.svg" alt="图标 3" />
          </div>
        </div>
      </div>
    </main>
    <script src="index.js"></script>
  </body>
</html>
